const request = useAxios()
import { useAxios } from '@/hooks/web/useAxios'
import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 列表
export const sysCompetitionSignupList = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'sysCompetitionSignupList',
      data: data
    }
  })
}

// 删除
export const sysCompetitionSignupDel = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'sysCompetitionSignupDel',
      data: data
    }
  })
}

// 查看
export const sysCompetitionSignupSee = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'sysCompetitionSignupSee',
      data: data
    }
  })
}
